<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Index</title>
<%@include file="../header.html"%>

</head>
<%
	String side_bar_page = basePath + "side_bar.jsp";
%>
<body>
	<div>
		<jsp:include page="../side_bar.jsp" flush="true" />
		<jsp:include page="../top_bar.jsp" flush="true" />

	</div>
	<section class="content" style="width:87%; float:right; margin:15px;">
	<div class="row">
		<div class="col-xs-12">
			<div class="box">
				<div class="box-header">
					<h3 class="box-title">资产详情</h3>
				</div>
				<!-- /.box-header -->
				<div class="box-body">
					<div id="example2_wrapper"
						class="dataTables_wrapper form-inline dt-bootstrap">
						<div class="row">
							<div class="col-sm-6"></div>
							<div class="col-sm-6"></div>
						</div>
						<div class="row">
							<div class="col-sm-12">

								<form action="detailAsset.action" method="post">
									<table width="500" align="center"
										class="table table-bordered  dataTable" role="grid"
										aria-describedby="example2_info" align="center" border="1"
										cellpadding="0" cellspacing="0" bordercolor="#3366cc">
										<!--     <caption>资产详细信息</caption>   -->
										<c:forEach var="asset" items="${assets }">
											<tr height="26px" >
												<td style="font-weight:bold;" width="150px" align="right" align="right"   >资产ID:</td>
												<td width="150">${asset.assetid }</td>
												<td style="font-weight:bold;" width="150px" align="right" >资产名称:</td>
												<td width="150">${asset.assetname}</td>
											</tr>

											<tr height="26px" >
												<td style="font-weight:bold;" width="150px" align="right" >资产类别:</td>
												<td width="150">${asset.assetcatalog.assetcatalogname}</td>
												<td style="font-weight:bold;" width="150px" align="right"  >上级资产类别:</td>
												<td width="150">${asset.assetcatalog.superiorassetcatalogname}</td>
											</tr>
											<tr height="26px" >
												<td style="font-weight:bold;" width="150px" align="right"  >在库状态:</td>
												<td width="150"><c:if test="${asset.instockstate==0}">领用</c:if>
													<c:if test="${asset.instockstate==1}">库存</c:if>
												</td>
												<td style="font-weight:bold;" width="150px" align="right"  >使用状态:</td>
												<td width="150"><c:if test="${asset.userState==0}">待领用</c:if>
													<c:if test="${asset.userState==1}">正常</c:if> <c:if
														test="${asset.userState==2}">送修</c:if>
												</td>
											</tr>

											<tr height="26px" >
												<td style="font-weight:bold;" width="150px" align="right"  >使用人ID:</td>
												<td width="150">${asset.user.username}</td>
												<td style="font-weight:bold;" width="150px" align="right"  >使用人部门ID:</td>
												<td width="150">${asset.user.dept.deptname}</td>
											</tr>

											<tr height="26px" >
												<td style="font-weight:bold;" width="150px" align="right"  >保管人ID:</td>
												<td width="150">${asset.keeperid.username}</td>
												<td style="font-weight:bold;" width="150px" align="right"  >卡片编号:</td>
												<td width="150">${asset.carnumber}</td>
											</tr>

											<tr height="26px" >
												<td style="font-weight:bold;" width="150px" align="right"  >单价:</td>
												<td width="150">${asset.unitprice}</td>
												<td style="font-weight:bold;" width="150px" align="right"  >数量:</td>
												<td width="150">${asset.number}</td>
											</tr>

											<tr height="26px" >
												<td style="font-weight:bold;" width="150px" align="right"  >财务是否入账:</td>
												<td width="100"><c:if test="${asset.recordstate==0}">否</c:if>
													<c:if test="${asset.recordstate==1}">是</c:if>
												</td>
												<td style="font-weight:bold;" width="150px" align="right"  >财务入账人ID:</td>
												<td width="150">${asset.recordid。username}</td>
											</tr>

											<tr height="26px" >
												<td style="font-weight:bold;" width="150px" align="right"  >采购单明细ID:</td>
												<td width="150">${asset.purchasenotedeitailid}</td>
												<td style="font-weight:bold;" width="150px" align="right"  >规格型号:</td>
												<td width="150">${asset.standardnumber}</td>
											</tr>

											<tr height="26px" >
												<td style="font-weight:bold;" width="150px" align="right"  >生产商:</td>
												<td width="150">${asset.producer}</td>
												<td style="font-weight:bold;" width="150px" align="right"  >供应商:</td>
												<td width="150">${asset.supplier}</td>
											</tr>

										</c:forEach>
									</table>
									<div style="text-align:center">
										<button type="button" class="btn btn-primary btn-sm"
											data-dismiss="modal" onclick="window.history.back(-1)">返回</button>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	</section>
	<%@include file="../footer.html"%>
</body>
</html>
